package com.stu.ssm_02.mapper;

import com.stu.ssm_02.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: IUserMapper
 * Package: com.stu.ssm_02.mapper
 * Description: @Version 1.0
 */
public interface IUserMapper {
    List<User> getUserList();

    List<User> getUserByUsername(String username);

    User getUserById(Integer id);

    int updateImgById(User user);

    Integer deleteUserById(int id);

    List<User> getUserListAjax();

    Integer deleteUserList(@Param("userList") List<Integer> userList);

    Integer deleteUserListAjax(@Param("userList") List<User> userList);
}
